package qldc.pm.tiensu.searchcontainer;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.portlet.PortletRequest;

import com.liferay.portal.kernel.dao.search.DisplayTerms;
import com.liferay.portal.kernel.util.ParamUtil;

public class YeuCauXoaAnTichDisplayTerms extends DisplayTerms {
	public static final String HO_VA_TEN_NGUOI_YEU_CAU_XOA_AN_TICH = "hoVaTenNguoiYeuCauXoaAnTich";
	public static final String MA_SO_HO_SO_XOA_AN_TICH = "maSoHoSoXoaAnTich";
	public static final String NGAY_LAP_HO_SO_XOA_AN_TICH = "ngayLapHoSoXoaAnTich";
	public static final String TRANG_THAI_XU_LY_HO_SO_XOA_AN_TICH ="trangThaiXuLyHoSoXoaAnTich";


	protected String hoVaTenNguoiYeuCauXoaAnTich;
	protected String maSoHoSoXoaAnTich;
	protected Date ngayLapHoSoXoaAnTich;
	protected int trangThaiXuLyHoSoXoaAnTich;

	public YeuCauXoaAnTichDisplayTerms(PortletRequest portletRequest) {
		super(portletRequest);
		SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");

		hoVaTenNguoiYeuCauXoaAnTich = ParamUtil.getString(portletRequest, HO_VA_TEN_NGUOI_YEU_CAU_XOA_AN_TICH);
		maSoHoSoXoaAnTich = ParamUtil.getString(portletRequest, MA_SO_HO_SO_XOA_AN_TICH);
		trangThaiXuLyHoSoXoaAnTich = ParamUtil.getInteger(portletRequest, TRANG_THAI_XU_LY_HO_SO_XOA_AN_TICH);
		ngayLapHoSoXoaAnTich = ParamUtil.getDate(portletRequest, NGAY_LAP_HO_SO_XOA_AN_TICH, dateFormat,
				null);
	}

	public int getTrangThaiXuLyHoSoXoaAnTich() {
		return trangThaiXuLyHoSoXoaAnTich;
	}

	public void setTrangThaiXuLyHoSoXoaAnTich(int trangThaiXuLyHoSoXoaAnTich) {
		this.trangThaiXuLyHoSoXoaAnTich = trangThaiXuLyHoSoXoaAnTich;
	}

	public String getHoVaTenNguoiYeuCauXoaAnTich() {
		return hoVaTenNguoiYeuCauXoaAnTich;
	}

	public void setHoVaTenNguoiYeuCauXoaAnTich(String hoVaTenNguoiYeuCauXoaAnTich) {
		this.hoVaTenNguoiYeuCauXoaAnTich = hoVaTenNguoiYeuCauXoaAnTich;
	}

	public String getMaSoHoSoXoaAnTich() {
		return maSoHoSoXoaAnTich;
	}

	public void setMaSoHoSoXoaAnTich(String maSoHoSoXoaAnTich) {
		this.maSoHoSoXoaAnTich = maSoHoSoXoaAnTich;
	}

	public Date getNgayLapHoSoXoaAnTich() {
		return ngayLapHoSoXoaAnTich;
	}

	public void setNgayLapHoSoXoaAnTich(Date ngayLapHoSoXoaAnTich) {
		this.ngayLapHoSoXoaAnTich = ngayLapHoSoXoaAnTich;
	}
	


}
